package com.phiture.erp.produce.dal.mapper;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import com.phiture.erp.produce.dal.entity.ErpProductionTaskProcessesDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 生产任务单工序 Mapper
 *
 * @author YH
 */
@Mapper
public interface ErpProductionTaskProcessesMapper extends BaseMapperX<ErpProductionTaskProcessesDO> {

    default List<ErpProductionTaskProcessesDO> selectListByProductionTaskId(Long productionTaskId) {
        return selectList(ErpProductionTaskProcessesDO::getProductionTaskId, productionTaskId);
    }

    default int deleteByProductionTaskId(Long productionTaskId) {
        return delete(ErpProductionTaskProcessesDO::getProductionTaskId, productionTaskId);
    }

}
